﻿using Grpc.Net.Client;
using GrpcClient1;
using GrpcDemo;
using System;

namespace GrpcClient1
{
    class Program
    {
        static async System.Threading.Tasks.Task Main(string[] args)
        {
            var channel = GrpcChannel.ForAddress("https://localhost:5001");
            var client = new Greeter.GreeterClient(channel);
            var rsp = await client.SayHelloAsync(new HelloRequest { Name = "zyc" });
            Console.WriteLine(rsp.Message);
            Console.ReadKey();
        }
    }
}